package com.lottery.dto;

import lombok.AllArgsConstructor;
import lombok.Data;

import java.util.List;

@Data
public class SaveOrderInputDTO {
    private String machine_number;
    private String belongTo;
    private List<Bets> bets;
    private int id;
    private int isDeleted;
    private int isPaid;
    private int isWinner;
    private String serialNumber;
    private String timeStrAuto;
    private int winningAmount;

    @Data
    @AllArgsConstructor
    public static class Bets {
        private String srcNumber;
        private String belongTo;
        private String createdAt;
        private int isWinner;
        private double money;
        private String num;
        private boolean pool;
        private double prizes;
        private int rank;
        private int type;

        public String getNum() {
            return srcNumber;
        }

        public void setSrcNumber(String srcNumber) {
            this.num = srcNumber;
        }
    }
}
